package edu.cs346.group5.datastores;

import java.sql.Date;
import java.util.Comparator;

public class WHTopic implements Comparable<WHTopic>

{

	@Override
	public String toString() {
		return "WHTopic [weight=" + weight + ", category=" + category
				+ ", comment=" + comment + ", rating=" + rating + "]";
	}

	public double weight = 0;

	public int category;

	public long comment;

	public int rating;
	
	public Date PostDate;
	
	public String PostedBy;
	
	public String TopicName;

	public int compare(WHTopic o1, WHTopic o2) {
		// TODO Auto-generated method stub
		return (int) (o1.weight - o2.weight);
	}

	@Override
	public int compareTo(WHTopic o) {
		// TODO Auto-generated method stub
		return (int)(this.weight - o.weight);
	}


}